<%@ page language="java" pageEncoding="UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page isELIgnored="false" %>
<%
    String path = request.getContextPath();
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <title>五金商城</title>
    <meta http-equiv="pragma" content="no-cache"/>
    <meta http-equiv="cache-control" content="no-cache"/>
    <meta http-equiv="expires" content="0"/>
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"/>
    <meta http-equiv="description" content="This is my page"/>
    <link href="css/Common.css" rel="stylesheet" type="text/css"/>
    <link href="css/sitegeneric08.css" rel="stylesheet" type="text/css"/>
    <script language="JavaScript" src="<%=path %>/js/public.js" type="text/javascript"></script>
    <script language="JavaScript" type="text/javascript">
    </script>
</head>

<body>
<!-- head如果图片高度不合适。请修改Common.ces里面的".Header .HeaderTop"的高度。和".Header"的高度-->
<jsp:include flush="true" page="/shop/inc/incTop.jsp"></jsp:include>
<!-- head-->


<!--body-->
<div align="center" class="Wrapper">
    <div id="MainCenter" align="center" class="MainCenter">
        <div id="navigation" class="naivgation">
            <jsp:include flush="true" page="/shop/inc/incLeft.jsp"></jsp:include>
        </div>
        <div id="content" class="Sub">
            <div class="NewContainer770">
                <div class="BoxHeader">
                    <div class="BoxHeader-center MarginTop10">销售排行榜</div>
                </div>
                <div class="Slot">
                    <table cellspacing="1" width="100%">
                        <tr>
                            <s:iterator value="#request.goodsList" id="goods">
                                <td align="center">
                                    <a href="<%=path %>/goodsDetail.action?goodsId=<s:property value="#goods.goodsId"/>">
                                        <img width="135" height="130" style="border:1px solid #ccc; padding:3px;"
                                             src="<%=path %>/<s:property value="#goods.goodsPic"/>"/>
                                        <br/>
                                            <s:property value="#goods.goodsName"/>
                                        <br/>
                                        <span style="color: red;">￥&nbsp;<s:property value="#goods.goodsShichangjia"/></span>
                                </td>
                            </s:iterator>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
        <div class="NewContainer770">
            <div class="BoxHeader">
                <div class="BoxHeader-center MarginTop10">
                    <span style="float:left">最新商品</span>
                    <span style="float:right"><a href="<%=path %>/goodsAllNoTejia.action">更多>></a>&nbsp;&nbsp;&nbsp;&nbsp;</span>
                </div>
            </div>
            <div class="Slot">
                <table cellspacing="3" cellpadding="3" align="left">
                    <tr>
                        <c:forEach items="${requestScope.goodsNoTejiaList}" var="goods" varStatus="sta">
                        <c:if test="${sta.index%5==0}">
                    </tr>
                    <tr>
                        </c:if>
                        <td align="center" style="font-variant: inherit;">
                            <a href="<%=path %>/goodsDetail.action?goodsId=${goods.goodsId }">
                                <img width="135" height="130" src="<%=path %>/${goods.goodsPic }"
                                     style="border:1px solid #ccc; padding:3px;"/>
                            </a>
                                ${goods.goodsName }&nbsp;<span style="color: red;">￥&nbsp;${goods.goodsShichangjia }</span>
                        </td>
                        </c:forEach>
                    </tr>
                </table>
            </div>
        </div>
    </div>
</div>
<!--body-->


<!--foot -->
<div align="center" class="Wrapper">
    <div id="footer" align="center" class="Footer">
        <jsp:include flush="true" page="/shop/inc/incFoot.jsp"></jsp:include>
    </div>
</div>
<!--foot -->
</body>
</html>
